use codegraph_api::RestApiServer;

#[tokio::test]
async fn test_rest_api_server_creation() {
    let server = RestApiServer::new().await;
    assert!(server.is_ok(), "Failed to create REST API server");
    
    let server = server.unwrap();
    let _router = server.router();
    
    // The router should be created successfully
    println!("REST API server created successfully");
}

#[tokio::test]
async fn test_rest_api_basic_functionality() {
    // Test that we can create the server and it has the expected structure
    let server = RestApiServer::new().await.expect("Failed to create server");
    
    // Test that we can get the router
    let _router = server.router();
    
    // The router should be a valid Axum router
    println!("REST API basic functionality test passed");
    println!("Router created successfully");
    
    // Note: More comprehensive endpoint testing would require additional setup
    // and dependencies that are complex to configure in this environment
}
